/*
 * Logger.hpp
 *
 *  Created on: 21.04.2011
 *      Author: mifodix
 */

#ifndef LOGGER_HPP_
#define LOGGER_HPP_

#ifndef __cplusplus
#error Need C++-compile to process this file
#endif

#include <iostream>
#include <fstream>
#include <time.h>

enum LOG_STATE {STATE_INFO, STATE_WARNING, STATE_ERROR, STATE_DEBUG};
/*
 *
 */
class Logger
{
private:
	static std::ofstream logFile;
	static bool isFree;//аля спинлок
	Logger();//экземпляры класса нам не нужны
public:
	static void Log(const char* moduleName, LOG_STATE state, const char *mess);
//	virtual ~Logger();
};

#endif /* LOGGER_HPP_ */
